import request from "./request";

const getToken = async (data) => {
    return await request({
        url: "/api/user/token/",
        method: "post",
        data: data,
    })
}

const refreshToken = async (data) => {
    return request({
        url: "/api/user/refresh/",
        method: "post",
        data: data
    })
}

const checkToken = async (data) => {
    return request({
        url: "/api/user/check/",
        method: "post",
        data: data
    })
}

export default {
    getToken,
    refreshToken,
    checkToken
}